//
//  HJJCircleView.h
//  demo
//
//  Created by hejingjin on 15/9/10.
//  Copyright (c) 2015年 hejingjin. All rights reserved.
//
//轮播图

#import <UIKit/UIKit.h>

@class HJJCircleView;
@protocol HJJCircleViewDelegate <NSObject>

/**
 *  图片展示视图点击事件,返回用户当前点击视图的下标,并做相应的界面推送等逻辑
 *
 *  @param imageIndexFlag 图片下标标记
 */
- (void)HJJCircleViewImageWithImageIndexFlag:(NSInteger)imageIndexFlag circleview:(HJJCircleView *)circleview;

@end

@interface HJJCircleView : UIView



@property (nonatomic, strong)NSMutableArray *imageDataarray;

@property (nonatomic, assign)NSInteger imageIndexFlag;

@property (nonatomic, strong)NSMutableArray *datasource;

@property (nonatomic, assign)id <HJJCircleViewDelegate> delegate;

/**
 *  初始化图片展示视图
 *
 *  @param frame          矩形大小
 *  @param imageDataArray 图片数据资源
 *
 *  @return 实例
 */
- (instancetype)initWithFrame:(CGRect)frame imageDataArray:(NSArray *)imageDataArray;

/**
 *  开始定时器
 */
- (void)startTimer;
/**
 *  暂停定时器
 */
- (void)pauseTimer;
/**
 *  移除定时器
 */
- (void)invalidateTimer;

@end
